package com.starbaba.core.web.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;


@SuppressWarnings("serial")
public class MenuInterceptor implements Interceptor {

	@Override
	public void destroy() {
	}

	@Override
	public void init() {
	}

	@Override
	public String intercept(ActionInvocation actionInvocation) throws Exception {
		System.out.println("BEGIN " + actionInvocation.getAction());
		String result = actionInvocation.invoke();
		System.out.println("END " + actionInvocation.getAction());
		return result;
	}

}
